package com.bkhech.boot.configure.web.web.conifg;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * bkhech boot 自定义 web 配置
 *
 * @author guowm
 * @date 2023/2/9
 */
@ConfigurationProperties(prefix = "bhhech.web")
@Validated
@Data
public class WebProperties {
//    @NotNull(message = "Admin ui 不能为空")
    private Ui adminUi;

    @Data
    @Valid
    private static class Ui {
        private String url;
    }
}
